import request from './request'

// 商品详情
export const reqFindGoods = (id) => request({ url: '/goods', method: 'get', params: { id } })

// 相关推荐商品
export const reqRelGoods = (id, limit = 16) => request({ url: '/goods/relevant', method: 'get', params: { id, limit } })

// 热榜商品
export const reqHotGoods = (id, type, limit = 3) => request({ url: '/goods/hot', method: 'get', params: { id, type, limit } })

// 评论 https开头就不会再加baseUrl
export const reqCommentInfoByGoods = (id) => request({ url: `https://mock.boxuegu.com/mock/1175/goods/${id}/evaluate`, method: 'get' })

// 评价列表
export const reqCommentList = (id, params) => request({ url: `https://mock.boxuegu.com/mock/1175/goods/${id}/evaluate/page`, method: 'get', params })
